import ceshiContext from "../utils";
import { useContext } from "react";

const Child = () => {
    const { name, value, setValue } = useContext(ceshiContext);
    const [name1, setName1] = useState({});

  return (
    <div
      onClick={() => {
        setValue("ceshi................", name1);
      }}
    >
      child+++++{name}=={value}
    </div>
  );
};

export default Child;
